#include "stringFunctions.h"


std::string getFileName(std::string in)
{

    int x = in.find_last_of("/");
    if((x+1) <= in.length() && (x+1) >= 0)
        return in.substr(x+1);
    return "";
}
std::string getFileExt(std::string in)
{

    int x = in.find_last_of(".");
    if((x) <= in.length() && (x) >= 0)
        return in.substr(x);
    return "";
}
